package com.cqie.service;

import com.cqie.dto.medical.MedicalPublicationDto;
import com.cqie.entity.MedicalPublication;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqie.exception.SpecialException;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 公告信息表 服务类
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-04
 */
public interface IMedicalPublicationService extends IService<MedicalPublication> {
    /**
     * 新增 / 更新 公告信息
     * @param medicalPublicationDto
     * @return
     */
    Boolean saveMedicalPublication(MedicalPublicationDto medicalPublicationDto) throws SpecialException;


    /**
     * 查询公告信息List
     * @param publicationType 公告类型
     * @return
     */
    List<MedicalPublicationDto> getMedicalPublicationList(String publicationType);

    /**
     * 删除公告信息
     * @param publicationId
     * @return
     */
    Boolean deleteMedicalPublication(Integer publicationId);
}
